package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Permission;
import com.example.entity.User;

import java.util.List;

public interface UserService extends IService<User> {
    User getbyUsername(String username);

    User login(User user);

    User register(User user);

    Boolean checkNameExists(String username);

    User findById(Long userId);

    List<Permission> getPermissions(Long id);
}
